#ifndef __DEFINES_H__
#define __DEFINES_H__

#define SCREEN_W		800
#define SCREEN_H		600

#define SAFE_DEL_ARRAY(p)	{ if(p) {delete []p; p = 0;} }
#define SAFE_DEL(p)			{ if(p) {delete p; p = 0;} }

#define LOGE	printf
#define LOGI	printf

#define MAX_LENGTH			512
#define MAX_LENGTH_NAME		128

#define	STATE_NONE			(0 << 0)
#define	STATE_CULL			(1 << 0)
#define	STATE_DEPTH			(1 << 1)
#define	STATE_ALPHA			(1 << 2)

#define PI					3.1416f
#define RADIAN(angle)		((angle) * PI / 180)
#define LIMIT_VIEW_ROTATE_X	0.5f

#define CONFIG_PATH			"..\\Resources\\Config\\"
#define SHADERS_PATH		"..\\Resources\\Shaders\\"
#define MODELS_PATH			"..\\Resources\\Models\\"
#define TEXTURES_PATH		"..\\Resources\\Textures\\"

#define FBO_MAX_INDEX		10

#endif
